what is an average cost function. There are any references about what is an average cost function in here. you can look below.